<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <div class="breadcrumb_wrap">
        <ul class="breadcrumb">
            <li>您的位置：</li>
            <li> <a href="messages_list.html">角色权限管理</a> <span class="divider">></span> </li>
            <li class="active">列表</li>
        </ul>
    </div>

    <div class="button_box table_btn_box">
        <label class="control-label" style="float: left">选择权限：</label>
        <select  class="form-control" style="width: 400px;float: left" ng-model="curPerm">
            <option ng-repeat="perm in permList" value="{{perm.code}}">{{perm.title}}</option>
        </select>
        <button type="button" class="btn btn-primary btn_add"  style="margin-left: 50px" ng-click="addPermToRole()"><i class="glyphicon glyphicon-plus"></i>添加</button>
    </div>
    <div class="table-responsive con_list">
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>描述</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="perm in rolePermList">
                    <td>{{perm.title}}</td>
                    <td>{{perm.des}}</td>
                    <td class="ops">
                        <button type="button" class="btn btn-primary del" ng-click="deletePermFromRole(perm.code)" >删除</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>